home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BG_SRC.ZIP / STDLIB.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-30  |  3.9 KB  |  134 lines

  1. /*lint -cmsc
  2.  
  3.     Standard Library Definitions -- Microsoft C Version
  4.  
  5.     This file contains declarations of standard library functions
  6.     for use with PC-Lint.  When provided to PC-Lint along with
  7.     other modules, the functions declared here are considered
  8.     defined with the properties given.  Of course, later redefinitions
  9.     may occur.
  10.  
  11.     This file may not be complete.  Your compiler may contain
  12.     many other functions not declared here.
  13.     You may modify or augment this file so that it more
  14.     closely conforms to the library provided with your compiler.
  15.  
  16.     The include file "stdio.h" is provided with your compiler.
  17.  
  18.  */
  19. /*lint -format=%(%f(%l)\s:\s%)%t\s%n:\s%m
  20.        error format expected by Microsoft editor
  21.        Note that %c can also be used to specify column */
  22. /*lint -w(0,0)  This specifies an infinite width line.  PC-lint will
  23.        not break lines at the normal 80-character boudary. This is
  24.        done because the editor strips off the file-name line-number */
  25. /*lint -e46 bit-fields are not required to be int or unsigned */
  26.  
  27. /*lint -library  library flag -- Don't get upset if these externals
  28.               are not referenced or defined */
  29.  
  30.  
  31. #include "stdio.h"
  32.  
  33. /*lint -dMSDOS  this preprocessor symbol is pre-defined */
  34. typedef void *UNIV;     /* universal pointer */
  35. /* typedef char *STRING;   string */
  36. typedef const char *CSTRING;   /* constant string */
  37.  
  38. #define VOID void       /* compiler-independent void */
  39. typedef FILE *STREAM;   /* a universal file designator */
  40.  
  41.  
  42. /*lint +fvr
  43.   The following functions exhibit variable return modes.
  44.   That is, they may equally-usefully be called for a value
  45.   as called just for their effects.
  46.  */
  47.  
  48.  
  49. int     close();
  50. int     creat();
  51. int     fclose();
  52. int     fflush();
  53. int     _flsbuf();
  54. int     fprintf();
  55. int     fputc();
  56. int     fputs();
  57. int     fscanf();
  58. int     fseek();
  59. /* for some versions of C it is
  60.    necessary to change the following declaration to:
  61. int     fwrite();
  62.  */
  63. size_t  fwrite();
  64. long    lseek();
  65. UNIV    memcpy();
  66. UNIV    memmove();
  67. UNIV    memset();
  68. int     printf();
  69. int     puts();
  70. int     scanf();
  71. int     sprintf();
  72. int     sscanf();
  73. /* STRING  strcat();
  74. STRING  strcpy();
  75. STRING  strncat();
  76. STRING  strncpy(); */
  77. int     unlink();
  78. int     write();
  79.  
  80.  
  81. /*lint -fvr  End of routines that exhibit varying return mode */
  82.  
  83.  
  84. VOID    main(int, char**);  /* since main is not otherwise referenced */
  85.  
  86. /*  At this point we wish to include prototypes for all functions
  87.     you are likely to use.  The easiest way to do this is to use
  88.     the prototypes that come with your compiler.
  89.  
  90.     Some of the less-frequently-used include files have been commented
  91.     out to save processing time.  Also, for some compilers, there
  92.     can be an overlap in that some functions are included in more
  93.     than one header file.  Please include the omitted include files
  94.     if you need them.  Failure to include an appropriate header will
  95.     result in a Warning 526, ... "not defined" for any called function
  96.     whose prototype is contained in the header.
  97.  */
  98.  
  99.  
  100. /* #include "types.h" */
  101. /* #include "assert.h" */
  102. /* #include "direct.h" */
  103. /* #include "conio.h" */
  104. #include "ctype.h"
  105. /* #include "dos.h" */
  106. /* #include "errno.h" */
  107. /* #include "fcntl.h" */
  108. /* #include "float.h" */
  109. /* #include "graph.h" */
  110. /* #include "io.h" */
  111. /* #include "limits.h" */
  112. /* #include "malloc.h" */
  113. /* #include "math.h" */
  114. /* #include "memory.h" */
  115. /* #include "process.h" */
  116. /* #include "setjmp.h" */
  117. /* #include "search.h" */
  118. /* #include "stdarg.h" */
  119. /* #include "stat.h" */
  120. /* #include "signal.h" */
  121. /* #include "share.h" */
  122. /* #include "stddef.h" */
  123. #include "stdlib.h"
  124. #include "string.h"
  125. /* #include "time.h" */
  126. /* #include "varargs.h" */
  127.  
  128.  
  129.  
  130. /*lint -restore Restore error messages to original state.
  131.        This option is only necessary if flags of the form
  132.        -e... appear in this file. */
  133.  
  134.